package com.system.exam.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.system.exam.admin.entity.BusCategory;
import com.system.exam.admin.mapper.BusCategoryMapper;
import com.system.exam.admin.service.BusCategoryService;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * @description 针对表【bus_category(分类表)】的数据库操作Service实现
 * @createDate 2023-10-24 12:47:54
 */
@Service
public class BusCategoryServiceImpl extends ServiceImpl<BusCategoryMapper, BusCategory>
        implements BusCategoryService {

    @Override
    public BusCategory checkCategoryName(String categoryName) {
        return getOne(new QueryWrapper<BusCategory>().eq("category_name", categoryName));
    }
}




